package com.Logistics.truck;

import com.Logistics.entity.core.AgencyScope;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;

@FeignClient(name = "pd-base",path = "/agencyScope")
public interface AgencyScopeFeignClient {
    @GetMapping("/getAgencyScopeByAreaId/{areaId}")
    public List<AgencyScope> getAgencyScopeByAreaId(@PathVariable String areaId);

    /**
     * 根据机构id查范围
     * @param orgId
     * @return
     */
    @GetMapping("/queryByOrgId/{orgId}")
    public AgencyScope queryByOrgId(@PathVariable String orgId);
}
